<template>
  <el-card  shadow="hover" style="height:290px;">
    <div class="top">
      <div class="left">
        <img :src="userImg" class="image" />
      </div>
      <div class="right">
        <p class="username">yx</p>
        <p class="role">超级管理员</p>
      </div>
    </div>
    <div class="bottom">
      <p>上次登录时间：<span class="ans">2019-08-08</span></p>
      <p>上次登录地点：<span class="ans">广州</span></p>
    </div>
  </el-card>
</template>

<script>
export default {
  name: "",
  data() {
    return {}
  },
  props:{
    userImg:{
      type: String
    }
  }
}
</script>
<style lang="less" scoped>
.top {
  .left {
    height: 120px;
    width: 120px;
    display: inline-block;
    margin-bottom: 20px;
    img {
      width: 100%;
      height: 100%;
      border-radius: 50%;
    }
  }
  .right {
    display: inline-block;
    margin-left: 20px;
    height: 120px;
    vertical-align: top;

    .username {
      font-size: 24px;
      line-height: 80px;
    }

    .role {
      font-size: 12px;
      color: #ccc;
    }
  }
}
.bottom {
  border-top: 1px solid #ccc;
  padding-top: 20px;

  p {
    font-size: 10px;
    color: #bbb;
    padding: 10px 0;

    span {
      margin-left: 30px;
    }
  }
}
</style>
